package com.wenheng.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: 文恒
 * @Date: 2021/3/26 - 03 - 26 -13:58
 * @Description:com.wenheng.client
 * @version:1.0
 */
@FeignClient("order")
@Component
public interface OrderClient {
    @PostMapping("/order/createOrder")
     String createOrder(@RequestParam("addresssId")Integer addresssId
            , @RequestParam("productId") Integer productId
            , @RequestParam("productNum") Integer productNum
            ,@RequestParam("token") String token);
}
